package com.ruimei.entitys.enums;

public enum JobTitle
{
  ONE_LEVEL_TEACHERS("一级教师"),  TWO_LEVEL_TEACHERS("二级教师"),  THREE_LEVEL_TEACHERS("三级教师"),  SENIOR_TEACHER("高级教师"),  A_SENIOR_TEACHER("正高级教师"),  OTHER("其它");
  
  private String name;
  
  public static JobTitle values(int num)
  {
    switch (num)
    {
    case 0: 
      return ONE_LEVEL_TEACHERS;
    case 1: 
      return TWO_LEVEL_TEACHERS;
    case 2: 
      return THREE_LEVEL_TEACHERS;
    case 3: 
      return SENIOR_TEACHER;
    case 4: 
      return A_SENIOR_TEACHER;
    case 5: 
      return OTHER;
    }
    return null;
  }
  
  public static int valuesNum(String jobTitle)
  {
    switch (jobTitle)
    {
    case "ONE_LEVEL_TEACHERS": 
      return 0;
    case "TWO_LEVEL_TEACHERS": 
      return 1;
    case "THREE_LEVEL_TEACHERS": 
      return 2;
    case "SENIOR_TEACHER": 
      return 3;
    case "A_SENIOR_TEACHER": 
      return 4;
    case "OTHER": 
      return 5;
    }
    return 5;
  }
  
  private JobTitle(String name)
  {
    this.name = name;
  }
  
  public String getName()
  {
    return this.name;
  }
  
  public void setName(String name)
  {
    this.name = name;
  }
  
  public static JobTitle matching(String ch)
  {
    switch (ch)
    {
    case "一级教师": 
      return ONE_LEVEL_TEACHERS;
    case "二级教师": 
      return TWO_LEVEL_TEACHERS;
    case "三级教师": 
      return THREE_LEVEL_TEACHERS;
    case "高级教师": 
      return SENIOR_TEACHER;
    case "正高级教师": 
      return A_SENIOR_TEACHER;
    case "其他": 
      return OTHER;
    }
    return OTHER;
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruimei\entitys\enums\JobTitle.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */